<h1>Fetching lists...</h1>

<table>
<thead>
    <tr>
        <td>Department</td>
        <td>Abbreviations</td>
    </tr>
</thead>
<tbody>
<% @departments.each do |dept|
    abbrs = DepartmentAbbreviation.find_abbreviations(dept) %>
    <tr>
        <td><%= dept %></td>
        <td><%= abbrs.empty? ? '-' : abbrs.join('; ') %></td>
    </tr>
<% end %>
</tbody>
</table>

<%= @message %>

<%= link_to 'Back', department_abbreviations_path %>
